package edu.sctu.practice.class01.zhangwang.day2015_10_08.text13;

/**
 * Created by Z_W on 2015/10/9.
 */
public class Operation {
    public int a = 0, b = 0;
    public double x = 0, y = 0, z = 0;
    public String n = "", m = "";

    public Operation(int a, int b) {
        this.a = a;
        this.b = b;
    }

    public Operation(double x, double y, double z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    public Operation(String n, String m) {
        this.n = n;
        this.m = m;
    }

    public void comparision() {
        if (a < b) {
            System.out.println("两个中最大的是：" + b);
        } else if (a > b) {
            System.out.println("两个中最大的是：" + a);
        } else if (a == b) {
            System.out.println("相等");
        }
    }

    public double multiplication() {
        System.out.println(x + "*" + y + "*" + z + "=" + x * y * z);
        return x * y * z;
    }

    public void judge() {
        if (n.equals(m)) {
            System.out.println("相同");
        } else {
            System.out.println("不相同");
        }
    }
}
